-- GENERATED SPELL FOR [Thauris Balgarr] --


function spell0_8978(pUnit, Event) --@Dark Iron Land Mine,n/a--
if charge_disp ~= 'na' then
pUnit:FullCastSpellOnTarget(11802,pUnit:GetMainTank ())
local charge_disp = 'na'
end
pUnit:RegisterEvent('Sorts_8978', 1, 1)
end

function spell1_8978(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(6533,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8978', 2256, 1)
end

function spell2_8978(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8978', 610, 1)
end

function Sorts_8978(pUnit, Event)
local choix_sorts_8978 = math.random(0, 2)
if choix_sorts_8978 == 0 then
pUnit:RegisterEvent('spell0_8978', 1, 1)
end
if choix_sorts_8978 == 1 then
pUnit:RegisterEvent('spell1_8978', 1, 1)
end
if choix_sorts_8978 == 2 then
pUnit:RegisterEvent('spell2_8978', 1, 1)
end
end

function mob8978_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8978', math.random(1500, 3000), 1)
end

function mob8978_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8978_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8978_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8978, 1, 'mob8978_Action')
RegisterUnitEvent(8978, 2, 'mob8978_Leave')
RegisterUnitEvent(8978, 3, 'mob8978_Kill')
RegisterUnitEvent(8978, 4, 'mob8978_Die')
